package com.fas.core.util.datadict;

import java.io.Serializable;

/**
 * 数据字典封装实体
 * 
 *
 * @Copyright: Copyright (c) 2016 FAS 
 * @anthor yixiaoping<thinker1013@163.com>
 * @since 2016年1月23日 下午10:46:18
 * @version V1.0
 */
public class DataDic implements Serializable{
	private static final long serialVersionUID = 1L;
	private String value;
	private String name;
	private String tranClass;
	private String html;
	public DataDic() {
	}
	
	public DataDic(String value, String name) {
		super();
		this.value = value;
		this.name = name;
	}
	

	public DataDic(String value, String name, String tranClass) {
		super();
		this.value = value;
		this.name = name;
		this.tranClass = tranClass;
	}

	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getTranClass() {
		return tranClass;
	}

	public void setTranClass(String tranClass) {
		this.tranClass = tranClass;
	}

	public String getHtml() {
		return "<span class='"+this.getTranClass()+"'>"+this.getName()+"</span>";
	}
}
